package kr.hkit.powerjava.chapter04;

import java.util.Scanner;

public class Prog2 {
	public static void main(String[] args) {
		
		int bd;  //받은돈
		int cd;  //상품의총액
		int bg;  //부가세
		int jd;  //잔돈
		
		Scanner input = new Scanner(System.in);
		
		System.out.println("받은돈을입력하시오.");
		bd=input.nextInt();
		
		System.out.println("상품의 가격을 입력하시오.");
		cd=input.nextInt();
		System.out.println("받은돈 : "+ bd);
		System.out.println("상품의 총액 : " + cd);
		bg=cd/10;
		System.out.println("부가세 :"+bg);
		
		jd=bd-cd;
		System.out.println("잔돈 :"+jd);
		
	}

}
